#ifndef MANAGER_H
#define MANAGER_H

#include <QMainWindow>
#include <QIcon>
#include <QSettings>
#include <QMdiSubWindow>
#include <QMdiArea>
#include <QAbstractPrintDialog>

#include <../core/templatereport.h>
#include "cpw.h"
#include <configuredialog.h>
#include <formmemberregistration.h>
#include <formmemberandteam.h>
#include <formgroup.h>

namespace Ui {
class Manager;
}

class Manager : public QMainWindow
{
    Q_OBJECT

public:
    explicit Manager(QWidget *parent = 0);
    ~Manager();

private slots:
    void on_actionWindowFull_screen_triggered(bool isFullScreen);
    void on_actionManagerConnect_to_database_triggered(bool isConnect);
    void on_actionReportPrint_triggered();

    void memberAndTeamShow();

    void on_actionAbout_Qt_triggered();

private:
    Ui::Manager             *ui;
    QSettings               *settings;
    QSqlDatabase            database;
    CompetitionPropertesWizard *competition_wizard;
    TemplateReport          *currentReport;
    ConfigureDialog         *cfg_dialog;
    FormMemberRegistration  *memberReg;
    FormMemberAndTeam       *memberAndTeam;
    FormGroup               *groups;

signals:
    void dbOpend(bool);
};

#endif // MANAGER_H
